package com.app.logger.model;

import com.app.core.mvc.serialization.EnumDefinition;

/**
 * 日志操作类型
 *
 * @author qiangt
 * @since 2022-11-29
 */
public enum LoggerType implements EnumDefinition {

    /**
     * 登录
     */
    LOGIN("0", "登录"),
    /**
     * 登出
     */
    LOGOUT("1", "登出"),
    /**
     * 业务
     */
    BUSINESS("2", "业务"),
    /**
     * 远程接口
     */
    REMOTE("3", "远程接口");
    private final String code;
    private final String comment;

    LoggerType(final String code, final String comment) {
        this.code = code;
        this.comment = comment;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getComment() {
        return this.comment;
    }
}
